<template>
	<view>
		<uni-drawer ref="showLeft" mode="left" :width="180" @change="drawerChange($event)" >
			<view>
				<slot>
					<my-navi></my-navi>
				</slot>
			</view>
		</uni-drawer>
	</view>
</template>

<script>
export default {
	name: 'menu-drawer',
	data() {
		return {
			showLeft:false
		};
	},
	methods:{
		/**
		 * @param {Object} e 抽屉的显示状态
		 */
		drawerChange(e) {
			this.showLeft=e
		}
	}
};
</script>

<style scoped lang="scss">
	.draw-title{
		padding: 15px;
		font-size: 15px;
		color: $u-tips-color;
		background-color: $u-bg-color;
	}
	
</style>
